Given any DOM object, returns a reference to the associated document object.
#include <IE.au3>
_IEDocGetObj ( ByRef $o_object )
Parameters
$o_object | Object variable of an InternetExplorer.Application, Window or Frame object |
Return Value
Success: | Returns an object variable pointing to the Document object |
Failure: | Returns 0 and sets @ERROR |
@Error: | 0 ($_IEStatus_Success) = No Error |
3 ($_IEStatus_InvalidDataType) = Invalid Data Type | |
@Extended: | Contains invalid parameter number |
Remarks
Given any DOM object (e.g. Browser, Window, Frame, iFrame, Document or Document Element) this will return a reference to the associated document object. It is particularly useful when writing generalized functions when you cannot control the type of object that will be passed in.
Related
None.
Example
; *******************************************************
; Example 1 - Open a browser to the AutoIt Homepage, get a reference
; to the document object and display a document attribute
; *******************************************************
;
#include <IE.au3>
$oIE = _IECreate ("http://www.autoitscript.com")
$oDoc = _IEDocGetObj ($oIE)
MsgBox(0, "Document Created Date", $oDoc.fileCreatedDate)